package com.zzyl.job;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

@Component
public class MyTask {

    // @Scheduled(cron = "0/5 * * * * ?")
    public void myJob(){
        System.out.println("定时任务开始执行："+ LocalDateTime.now() );
    }
}
